package bam.service.impl;

import java.util.List;

import bam.dao.UserinfoDao;
import bam.entity.Logins;
import bam.entity.Mapspoor;
import bam.entity.Userinfo;
import bam.service.UserinfoService;
import bam.util.PagingUtil;

public class UserinfoServiceImpl implements UserinfoService {
private UserinfoDao userinfoDao;
	public Userinfo selectUserinfo(int usersid, String token) throws Exception {
		return this.userinfoDao.selectUserinfo(usersid, token);
	}
	public void setUserinfoDao(UserinfoDao userinfoDao) {
		this.userinfoDao = userinfoDao;
	}
	public int selectUserNum() throws Exception {
		return userinfoDao.selectUserNum();
	}
	public int selectOnlineNum() throws Exception {
		return userinfoDao.selectOnlineNum();
	}
	public int selectNetNum() throws Exception {
		return userinfoDao.selectNetNum();
	}
	public void slurPageList(PagingUtil<Userinfo> pu, String sousuo)throws Exception {
		userinfoDao.slurPageList(pu, sousuo);
	}
	
	public void selUserLoginList(PagingUtil<Logins> pu, String sousuo, int areaid)throws Exception {
		userinfoDao.selUserLoginList(pu, sousuo,areaid);
	}
	public void selUserNetList(PagingUtil<Mapspoor> pu,  String sousuo, String areaid,String net_type,String userid)
			throws Exception {
		userinfoDao.selUserNetList(pu,sousuo,areaid, net_type,userid);
	}
	public List<Logins> selUserLogin(String areaid, String userid)
			throws Exception {
		return userinfoDao.selUserLogin(areaid, userid);
	}
		
}
